package algotradingfx.data;

import atp.commons.util.Tick;

public class TickData {

	private double ask;
	private long askDepth;
	private double bid;
	private long bidDepth;
	private String broker;
	private double spread;
	private String symbol;
	private long timeStamp;

	public TickData(String broker, String symbol, long timeStamp, double bid, long bidDepth, double ask, long askDepth,
	        double spread) {
		setBroker(broker);
		setSymbol(symbol);
		setTimeStamp(timeStamp);
		setBid(bid);
		setBidDepth(bidDepth);
		setAsk(ask);
		setAskDepth(askDepth);
		setSpread(spread);
	}

	public TickData(Tick tick) {
		setBroker(tick.getBroker());
		setSymbol(tick.getSymbol());
		setTimeStamp(tick.getTimestamp());
		setBid(tick.getBid());
		setBidDepth(tick.getBidDepth());
		setAsk(tick.getAsk());
		setAskDepth(tick.getAskDepth());
		setSpread(tick.getSpread());
	}

	public double getAsk() {
		return ask;
	}

	public long getAskDepth() {
		return askDepth;
	}

	public double getBid() {
		return bid;
	}

	public long getBidDepth() {
		return bidDepth;
	}

	public String getBroker() {
		return broker;
	}

	public double getSpread() {
		return spread;
	}

	public String getSymbol() {
		return symbol;
	}

	public long getTimeStamp() {
		return timeStamp;
	}

	public void setAsk(double ask) {
		this.ask = ask;
	}

	public void setAskDepth(long askDepth) {
		this.askDepth = askDepth;
	}

	public void setBid(double bid) {
		this.bid = bid;
	}

	public void setBidDepth(long bidDepth) {
		this.bidDepth = bidDepth;
	}

	public void setBroker(String broker) {
		this.broker = broker;
	}

	public void setSpread(double spread) {
		this.spread = spread;
	}

	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	public void setTimeStamp(long timeStamp) {
		this.timeStamp = timeStamp;
	}

}
